package com.xhx.spring.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2023-03-03 08:08
 **/
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired//byType-->byName
    private OrderService orderService;

    public UserServiceImpl() {
    }

//    @Autowired
//    public UserServiceImpl(OrderService orderService) {
//        this.orderService = orderService;
//        System.out.println("有参构造函数...");
//    }


    @Override
    public void save() {
        orderService.create();

        System.out.println("user save...");
    }
}
